let searchParams = new URLSearchParams('?aa=11&bb=22');
console.log(searchParams.get('aa'));//11
searchParams.append('cc', '33');
console.log(searchParams.toString());//aa=11&bb=22&cc=33

searchParams.delete('bb');
searchParams.set('aa', '111');
console.log(searchParams.toString());//aa=111&cc=33

//遍历1
for (const name of searchParams.keys()) {
	console.log(name);//aa,cc
}

//遍历2
for (const value of searchParams.values()) {
	console.log(value);//111,33
}